package org.example.ioc02.controller;

import org.example.ioc02.pojo.Student;
import org.example.ioc02.servlet.StudentServlet;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.List;

@Controller
public class StudentController {
    @Autowired
    private StudentServlet studentServlet;

    public List<Student> finAll() {
      return studentServlet.finAll();
    }
}
